﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ComoditisManage.aspx.cs" Inherits="Comod_ComoditisManage" %>
<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/changerows.js"></script>
    <script type="text/javascript" src="../js/rl.js"></script>
    <script type="text/javascript">
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }
    
    </script>

</head>
<body>
    <form id="form1" runat="server" >
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="2%" height="1%">
                    <img src="../images/module.gif" width="20" height="22"></td>
                <td >
                    <asp:Label ID="lblPath" runat="server" Text="Label"></asp:Label></td></tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
                <tr><td colspan="2" width="99%" align="right">
                    <img src="../images/search.gif" alt="搜索"  height="16" />收货日期：<asp:TextBox
                        ID="yjTm1" runat="server" CssClass="input1" Width="80"></asp:TextBox>到<asp:TextBox
                        ID="yjTm2" runat="server" CssClass="input1" Width="80"></asp:TextBox>收货仓库：<asp:TextBox
                        ID="txtck" runat="server" CssClass="input1" Width="80px"></asp:TextBox>商品类型：<asp:TextBox
                        ID="txttype" runat="server" CssClass="input1" Width="80px"></asp:TextBox>型号：<asp:TextBox
                        ID="txtSpe" runat="server" CssClass="input1" Width="80px"></asp:TextBox>型号编号：<asp:TextBox
                        ID="txtbh" runat="server" CssClass="input1" Width="80px"></asp:TextBox>审核状态：<asp:DropDownList
                            ID="ddlzt" runat="server">
                            <asp:ListItem Value="0">全部</asp:ListItem>
                            <asp:ListItem>未审核</asp:ListItem>
                            <asp:ListItem>已通过</asp:ListItem>
                        </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" OnClick="btnSearch_Click"  /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound">
             <RowStyle Height="25px" />
            <PagerSettings Visible="False" />
            <Columns>
        
                <asp:BoundField HeaderText="型号编号" DataField="ComoditiesBarcode" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="收货仓库" DataField="WarehouseName" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="供货商" DataField="Supplier" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
              
                <asp:BoundField HeaderText="品牌" DataField="Brand" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="型号" DataField="Specifications" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                
                <asp:BoundField HeaderText="收货日期" DataField="storDate">
                    <ItemStyle HorizontalAlign="Center" />
                   
                </asp:BoundField>
                <asp:BoundField HeaderText="数量" DataField="SeveralStorage" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="单位" DataField="Units" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="审核状态" DataField="AuditState">
                    <ItemStyle ForeColor="Red" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnEdit" CommandArgument='<%#Eval("ComoditiesId")+"|"+Eval("AuditState") %>' runat="server" OnClick="linkbtnUodate_Click">修改</asp:LinkButton>
                        <asp:LinkButton ID="linkbtnFlag" CommandArgument='<%#Eval("ComoditiesId") %>' runat="server" OnClick="lnkbtnFlag_Click">审核</asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            
                   <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckFlag" runat="server"  />
                    </ItemTemplate>
                    <ItemStyle Width="30px" HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
            <td style="width: 120px">
                </td>
                <td align="right">
                  <uc1:PageNavigator ID="PageNavigator1" runat="server" DataId="GvData" ConnectionString="connstr" ShowType="Text" PageSize="20" />
                </td>
                <td align="right" style="height: 5px">
                    <input type="checkbox" name="chkall" onClick="CheckAll(this.form)" value="on"><font
                        color="#FF0000">全选</font>&nbsp;&nbsp;&nbsp;<asp:Button
                        ID="btnDel" runat="server" Text=" 删除 " CssClass="submit" OnClick="btnDel_Click" OnClientClick="return confirm('确定要删除吗?')" />
                </td>
            </tr>
        </table>
       <asp:HiddenField ID="HFroid" runat="server" />
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvData","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>